﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x0200008E RID: 142
	internal class InvalidSingle : ISingleDecoder
	{
		// Token: 0x06000261 RID: 609 RVA: 0x0000B49E File Offset: 0x0000989E
		private InvalidSingle()
		{
		}

		// Token: 0x06000262 RID: 610 RVA: 0x0000B4A6 File Offset: 0x000098A6
		public float Read(byte[] bytes, int offset, out int readSize)
		{
			throw new InvalidOperationException(string.Format("code is invalid. code:{0} format:{1}", bytes[offset], MessagePackCode.ToFormatName(bytes[offset])));
		}

		// Token: 0x040000B3 RID: 179
		internal static readonly ISingleDecoder Instance = new InvalidSingle();
	}
}
